package com.xuecheng.order.service;

import com.xuecheng.commons.model.vo.OrdersVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.order.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.web.exceptions.BusinessException;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author 七安
 * @since 2022-09-30
 */
public interface OrdersService extends IService<Orders> {

    /**
     * 创建订单
     * @param coursePubId 课程发布id
     * @return 结果
     */
    ResponseResult<String> createOrder(Long coursePubId) throws BusinessException;

    /**
     * 查询支付结果
     * @param orderNo 查询支付结果
     * @return 订单信息
     */
    ResponseResult<OrdersVo> findPayResult(String orderNo) throws BusinessException;
}
